<?php 
/*
 module:		定时任务控制器
 create_time:	2022-08-19 10:13:15
 author:		
 contact:		
*/

namespace App\Validate\admin;
use App\Validate\BaseValidate;

class CrontabValidate extends BaseValidate {


	protected $rule = [
		'name'=>['required'],
		'type'=>['required'],
		'rule'=>['required'],
		'target'=>['required'],
	];

	protected $message = [
		'name.required'=>'任务名称不能为空',
		'type.required'=>'任务类型不能为空',
		'rule.required'=>'规则不能为空',
		'target.required'=>'调用目标不能为空',
	];

	protected $scene  = [
		'add'=>['name','type','rule','target'],
		'update'=>['name','type','rule','target'],
	];





}



